home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILFILE / UNPROT2.LZH / SK-NOFFD.FIX < prev    next >
Text File  |  1984-11-22  |  4KB  |  63 lines

  1. The following procedure was used to fix my SIDEKICK version 1.11A SK.COM
  2. (non-copyprotected version) file so that the silly thing wouldn't
  3. issue a formfeed before every appointment day when printing it out:
  4. ==================================================================
  5.  
  6. When loaded with "DEBUG SK.COM", my version showed the following regs:
  7.  
  8. AX=0000  BX=0000  CX=8DDE  DX=0000  SP=FFFE  BP=0000  SI=0000  DI=0000  
  9. DS=28E9  ES=28E9  SS=28E9  CS=28E9  IP=0100   NV UP DI PL NZ NA PO NC 
  10. 28E9:0100 E97E04        JMP     0581                               
  11.  
  12. Check to see if yours is the same. If not - or if the following addresses
  13. don't match your version of SK.COM - then you'll have to find the culprit's
  14. location within your own version of SIDEKICK via DEBUG's search command.
  15.  
  16. The culprit lives in the following code:
  17.  
  18. -u7a85 l40
  19.  
  20. 28E9:7A85 E2F9          LOOP    7A80                               
  21. 28E9:7A87 E82000        CALL    7AAA                               
  22. 28E9:7A8A 8B4E02        MOV     CX,[BP+02]                         
  23. 28E9:7A8D E2C7          LOOP    7A56                               
  24. 28E9:7A8F B00C          MOV     AL,0C        <----- HERE IT IS!!!  
  25. 28E9:7A91 E87300        CALL    7B07                               
  26. 28E9:7A94 C606A23A00    MOV     BYTE PTR [3AA2],00                 
  27. 28E9:7A99 58            POP     AX                                 
  28. 28E9:7A9A 58            POP     AX                                 
  29. 28E9:7A9B 5A            POP     DX                                 
  30. 28E9:7A9C 5E            POP     SI                                 
  31. 28E9:7A9D 59            POP     CX                                 
  32. 28E9:7A9E 58            POP     AX                                 
  33. 28E9:7A9F C3            RET                                        
  34. 28E9:7AA0 E81400        CALL    7AB7                               
  35. 28E9:7AA3 2020          AND     [BX+SI],AH                         
  36. 28E9:7AA5 2020          AND     [BX+SI],AH                         
  37. 28E9:7AA7 2000          AND     [BX+SI],AL                         
  38. 28E9:7AA9 C3            RET                                        
  39. 28E9:7AAA 50            PUSH    AX                                 
  40. 28E9:7AAB B00D          MOV     AL,0D                              
  41. 28E9:7AAD E85700        CALL    7B07                               
  42. 28E9:7AB0 B00A          MOV     AL,0A                              
  43. 28E9:7AB2 E85200        CALL    7B07                               
  44. 28E9:7AB5 58            POP     AX                                 
  45. 28E9:7AB6 C3            RET                                        
  46. 28E9:7AB7 803EA23AFF    CMP     BYTE PTR [3AA2],FF                 
  47. 28E9:7ABC 7403          JZ      7AC1                               
  48. 28E9:7ABE E9A299        JMP     1463                               
  49. 28E9:7AC1 8BFC          MOV     DI,SP                              
  50. 28E9:7AC3 56            PUSH    SI                                 
  51. 28E9:7AC4 36            SS:                                        
  52. 28E9:7AC5 8B35          MOV     SI,[DI]                            
  53.  
  54.  
  55. Even though there's only one byte to change, I have included the rest
  56. in order to provide you with a unique pattern to search for when trying
  57. to locate it.
  58.  
  59. Just change the "MOV AL,0C" to a "MOV AL,0A" and you're all set. You will
  60. now get a linefeed instead of a formfeed between appointment days. Using
  61. the addresses above (again, this is for my version 1.11A of the un-
  62. protected SK.COM), CS:7A90 is the byte to be changed to a 0A.
  63.